{include file="head.html"}
<div id="maincontent">
  <div class="wrap">
    <div class="crumbs"> <a href="__APP__/index/home">{lang='栏目管理'}</a> <a href="#">{lang='文章管理'}</a> </div>
    <hr />
    <div class="admin_main_tool">
      <div class="admin_main_function">
        <h2>{lang='文章搜索'} - {$keyword}
        </h2>
        <?php if(empty($cur_cat['name'])){?>
        <?php }else{?>
        <a href="__URL__/index">{lang='所有文章'}</a>
        <?php } ?>
        <a href="__URL__/add">{lang='发布文章'}</a>
        <div style="clear:both"></div>
      </div>
      <div class="admin_main_search">
        <form action="__URL__/search" method="post">
          <input  class="regular-text"  name="keyword" id="keyword" value="" style="float:left; width:160px; height:23px;" type="text" />
          <button class="regular-button" type="submit" style="margin-left:10px;" >
            {lang='搜索'}
          </button>
        </form>
      </div>
      <div style="clear:both"></div>
    </div>
    <form action="__URL__/batch_manage" method="post" target="_self" id="batch" name="batch" >
      <table class="list_table  table_style">
        <thead>
           <tr>
          <th width="5%"><div align="center">
              <input  type="checkbox" id="checkall" onclick = "selectAll('id[]');" />
            </div></th>
          <th width="5%"><div align="center">&nbsp;ID</div></th>
          <th width="30%"><div align="center">{lang='文章标题'}<?php echo module('common')->getlang('文章标题') ?></div></th>
          <th width="15%"><div align="center">{lang='属性'}</div></th>
          <th width="15%"><div align="center">
              <select id="clist" style="width:100px" onChange="javascript:window.location.href='__URL__/index-'+$('#clist').val() "  >
                <option value="">（{lang='全部文章'}）</option>
                <?php  if(!empty($clist)) foreach($clist as $clist) { ?>
                <option value="{$clist['id']}" <?php if($clist['id']==$cur_cat['id']){ ?> selected="selected" <?php } ?> >{$clist['name']}</option>
                <?php }?>
              </select>
            </div></th>
          <th width="15%"><div align="center">{lang='发布时间'}</div></th>
          <th width="15%"><div align="center">{lang='管理操作'}</div></th>
        </tr>
        </thead>
        <?php if(is_array($list)) foreach($list as $vo){?>
        <tr id="del_{$vo['id']}" >
          <td align="center"><?php if(module('common')->auth_class_if($vo['cid'])) { ?>
            <input name="id[]" type="checkbox" id="id[]" value="{$vo['id']}" >
            <?php }else{ ?>
            <input type="checkbox" disabled="true" value="{$vo['id']}" >
            <?php } ?></td>
          <td align="center">{$vo['id']}</td>
          <td align="left"><a href="<?php echo ROOTAPP ?>/content/{$vo['id']}.html" target="_blank">{$vo['title']}</a></td>
          <td align="center"><div style=" text-align:center; margin-top:4px;">
              <?php if(empty($vo['pic'])) { ?>
              <a class="nature_f" title="{lang='无形象图'}" href="#">{lang='图'}</a>
              <?php }else{ ?>
              <a class="nature_t" title="{lang='形象图'}" href="#">{lang='图'}</a>
              <?php } ?>
              <?php if($vo['good']==0) { ?>
              <a class="nature_f" id="good_{$vo['id']}" href="javascript:state('good','{$vo['id']}','1')" title="{lang='未推荐'}" >{lang='荐'}</a>
              <?php }else{ ?>
              <a class="nature_t" id="good_{$vo['id']}" href="javascript:state('good','{$vo['id']}','0')" title="{lang='推荐'}" >{lang='荐'}</a>
              <?php } ?>
              <?php if($vo['hits']==0) { ?>
              <a class="nature_f" id="hits_{$vo['id']}" href="javascript:state('hits','{$vo['id']}','1')" title="{lang='非置顶'}">{lang='顶'}</a>
              <?php }else{ ?>
              <a class="nature_t" id="hits_{$vo['id']}" href="javascript:state('hits','{$vo['id']}','0')" title="{lang='置顶'}">{lang='顶'}</a>
              <?php } ?>
              <?php if($vo['status']==0) { ?>
              <a class="nature_f" id="status_{$vo['id']}" href="javascript:state('status','{$vo['id']}','1')" title="{lang='未审核'}">{lang='审'}</a>
              <?php }else{ ?>
              <a class="nature_t" id="status_{$vo['id']}" href="javascript:state('status','{$vo['id']}','0')" title="{lang='审核'}">{lang='审'}</a>
              <?php } ?>
          </div></td>
          <td align="center"><div align="center"> <a  href="__URL__/index-{$vo['cid']}">{$vo['cname']}</a> </div></td>
          <td align="center"><div align="center">
              <?php $vo['time']=date('Y-m-d',$vo['time']); echo $vo['time'] ?>
          </div></td>
          <td align="center">
            <a href="__URL__/edit-{$vo['id']}" >{lang='编辑'}</a> | <a href="javascript:dellist({$vo['id']})">{lang='删除'}</a>
            </td>
        </tr>
        <?php } ?>
      </table>
      <div>
      <div style="float:left;margin-top:10px;">
        <div style="float:left">
          <select name="mode" id="mode" onChange="on_change()">
            <option value="1">{lang='批量删除'}</option>
            <option value="2">{lang='批量锁定'}</option>
            <option value="3">{lang='批量审核'}</option>
            <option value="4">{lang='转移栏目'}</option>
          </select>
        </div>
        <div style="float:left; margin-left:5px;"> <span id="schange" style="display:none">
          <select name="cid" id="auth_class_ifd">
            <?php if(is_array($cat)){ foreach($cat as $vo){ ?>
            <?php if($vo['type']==1 AND $vo['mid']==$mid) { ?>
            <option value="{$vo['id']}"   selected="selected">{$vo['cname']}</option>
            <?php }else{ ?>
            <option value="{$vo['id']}" style="background-color:#ccc" disabled="disabled" >{$vo['cname']}</option>
            <?php } } } ?>
           
          </select>
          </span> </div>
        <div style="float:left"> <a class="nextPage" href="javascript:document.forms['batch'].submit()">{lang='执行'}</a> </div>
      </div>
      <div style="float:right; margin-top:10px;" id="page">{$page}</div>
    </div>
    </form>
  </div>
</div>
{include file="plus/content_index.html"}</body></html>